package si.ibloc.cms.home;

import org.jboss.seam.annotations.Name;
import si.ibloc.cms.model.Article;

@Name("articleHome")
public class ArticleHome extends ContentHome<Article> {

	public void setArticleId(Integer id) {
		setId(id);
	}

	public Integer getArticleId() {
		return (Integer) getId();
	}

	@Override
	protected Article createInstance() {
		return new Article();
	}

	public boolean isWired() {
		return true;
	}

	public Article getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
